package com.ustropo.financas.navigator;

/**
 * Representa uma seção dentro de um menu de navegação lateral
 * 
 * @author Fernando C. de Souza
 * @version 1.0
 * @since 08/10/2013
 */
public class NavMenuSection implements NavDrawerItem {

	public static final int SECTION_TYPE = 0;
    private int id;
    private String label;

    /**
     * 
     */
    private NavMenuSection() {
    }
    
    /**
     * 
     * @param id
     * @param label
     * @return
     */
    public static NavMenuSection create( int id, String label ) {
        NavMenuSection section = new NavMenuSection();
        section.setLabel(label);
        return section;
    }
    
    /*
     * (non-Javadoc)
     * @see com.ustropo.budget.drawable.NavDrawerItem#getType()
     */
    @Override
    public int getType() {
        return SECTION_TYPE;
    }

    /**
     * 
     */
    public String getLabel() {
        return label;
    }

    /**
     * 
     * @param label
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /*
     * (non-Javadoc)
     * @see com.ustropo.budget.drawable.NavDrawerItem#isEnabled()
     */
    @Override
    public boolean isEnabled() {
        return false;
    }

    /**
     * 
     */
    public int getId() {
        return id;
    }

    /**
     * 
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /*
     * (non-Javadoc)
     * @see com.ustropo.budget.drawable.NavDrawerItem#updateActionBarTitle()
     */
    @Override
    public boolean updateActionBarTitle() {
        return false;
    }

}
